package net.mysoft.budgetsoft.system.pagemodel;


/**
 * 
 * @author dagongPGP v1.0
 * @link <a href=http://www.dagongsoft.net>北京大公信软科技有限公司</a>
 * 
 * @version $Revision: 1.00 $Date: 2013-02-06 11:01:16
 */

public class DictionaryDetail implements java.io.Serializable {

	private String ids;
	private int page;// 当前页
	private int rows;// 每页显示记录数
	private String sort = "OrderNO";// 排序字段名
	private String order = "asc";// 按什么排序(asc,desc)

	private String detailID;
	private String detailName;
	private String typeID;
	private Integer orderNO;
	private String note;

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getDetailID() {
		return this.detailID;
	}

	public void setDetailID(String detailID) {
		this.detailID = detailID;
	}

	public String getDetailName() {
		return detailName;
	}

	public void setDetailName(String detailName) {
		this.detailName = detailName;
	}

	public String getTypeID() {
		return this.typeID;
	}

	public void setTypeID(String typeID) {
		this.typeID = typeID;
	}

	public Integer getOrderNO() {
		return this.orderNO;
	}

	public void setOrderNO(Integer orderNO) {
		this.orderNO = orderNO;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Override
	public int hashCode() {
		if (this.getDetailID() == null)
			return super.hashCode();
		int prime = 0;
		prime += this.getDetailID().hashCode();
		return prime;
	}

	@Override
	public boolean equals(Object obj) {
		boolean isEquals = false;
		if (obj != null && this.getClass() == obj.getClass()) {
			DictionaryDetail clazz = (DictionaryDetail) obj;
			if (clazz.getDetailID().equals(this.getDetailID()))
				isEquals = true;
			return isEquals;
		}
		return isEquals;
	}

}